package com.cy.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

@Service
public class ConsumerService {

    @SentinelResource//描述方法会作为限流链路中的一个叶子节点
    public String doGetResource(){
        return "Get resource";
    }
}
